package com.ytxg.health_management.healthModel.service;

import com.ytxg.health_management.healthModel.entity.HealthModel;
import com.ytxg.health_management.healthModel.entity.HealthModelRecord;
import com.ytxg.health_management.pojo.entity.Result;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface ModelService {


    Result<String> addModel(HealthModel healthModel,String name);
    Result<String> addModelAdmin(HealthModel healthModel);
    Result<String> addModelRecord(HealthModelRecord healthModelRecord, String name);
    Result<String> deleteModel(int id);
    Result<String> deleteModelRecord(int id);
    Result<List<HealthModel>> selectModel(HealthModel healthModel);
    Result<Map<String,Object>> selectModelAll(HealthModel healthModel);
    Result<List<HealthModelRecord>> getModelRecord(String name);
    Result<Map<Integer,String>> getModelName(String name);
    Result<ArrayList<Object>> getChartData(int id, String name);
}
